// 创建1到5行的省略类名
@for $i from 1 through 5 {
  .exceed_omit_#{$i} {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: #{$i};
    line-clamp: #{$i};
  }
}

// flex布局样式
.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

// flex布局样式
.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex_between_center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex_around_center {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.flex_end_center {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flexcol_center {
  @extend .flex_center;
  flex-direction: column;
}

// 创建原子类名
@for $i from 1 through 1000 {
  $value: #{$i}rpx;
  .fs_#{$i} {
    font-size: $value;
  }
  .p_#{$i} {
    padding: $value;
  }
  .pl_#{$i} {
    padding-left: $value;
  }
  .pt_#{$i} {
    padding-top: $value;
  }
  .pr_#{$i} {
    padding-right: $value;
  }
  .pb_#{$i} {
    padding-bottom: $value;
  }
  .m_#{$i} {
    margin: $value;
  }
  .ml_#{$i} {
    margin-left: $value;
  }
  .mt_#{$i} {
    margin-top: $value;
  }
  .mr_#{$i} {
    margin-right: $value;
  }
  .mb_#{$i} {
    margin-bottom: $value;
  }
  .w_#{$i} {
    width: $value;
  }
  .h_#{$i} {
    height: $value;
  }
  .fw_#{$i} {
    font-weight: $i;
  }
  .flex_#{$i} {
    flex: $i;
  }
}

// 主题色
.theme_color {
  color: $uni-color-primary;
}
// 灰色字体
.tip_color {
  color: $uni-text-color-grey;
}
// 提示字体
.placeholder_color {
  color: $uni-text-color-placeholder;
}

// 底部按钮样式
.bottom_btn_box {
  width: 100%;
  padding: 20rpx 40rpx;
  box-sizing: border-box;
  background-color: #fff;
  .bottom_btn {
    padding: 20rpx 0;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    background-color: $uni-color-primary;
    color: #fff;
    border-radius: 50rpx;
  }
}

// 页面布局样式，通常用在列表页
.flex_page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.form_card {
  margin-bottom: 20rpx;
  padding: 20rpx;
  border-radius: 20rpx;
  background-color: #fff;
  &_title {
    margin-bottom: 20rpx;
    font-size: 36rpx;
    font-weight: bold;
  }
}
